<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" type="text/css" href="<?php echo (CSS_URL); ?>bootstrap.min.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo (CSS_URL); ?>bootstrap-theme.min.css" />
        <script type="text/javascript" src="<?php echo (JS_URL); ?>jquery-3.1.0.min.js"></script>
        <script type="text/javascript" src="<?php echo (JS_URL); ?>Js/bootstrap.min.js"></script>
        <script type="text/javascript" src="<?php echo (JS_URL); ?>kindeditor-all-min.js"></script>
         <script type="text/javascript" src="<?php echo (JS_URL); ?>zh_CN.js"></script> 
    <script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="content"]', {
					allowFileManager : true
				});
				K('input[name=getHtml]').click(function(e) {
					alert(editor.html());
				});
				K('input[name=isEmpty]').click(function(e) {
					alert(editor.isEmpty());
				});
				K('input[name=getText]').click(function(e) {
					alert(editor.text());
				});
				K('input[name=selectedHtml]').click(function(e) {
					alert(editor.selectedHtml());
				});
				K('input[name=setHtml]').click(function(e) {
					editor.html('<h3>Hello KindEditor</h3>');
				});
				K('input[name=setText]').click(function(e) {
					editor.text('<h3>Hello KindEditor</h3>');
				});
				K('input[name=insertHtml]').click(function(e) {
					editor.insertHtml('<strong>插入HTML</strong>');
				});
				K('input[name=appendHtml]').click(function(e) {
					editor.appendHtml('<strong>添加HTML</strong>');
				});
				K('input[name=clear]').click(function(e) {
					editor.html('');
				});
			});
		</script>
    </head>
    <body>
            <div class="container-fluid">
         <div class="page-header text-center">
            <h1>新文章</h1>
          </div>
        <div class="col-lg-12">
        <form action="<?php echo (ADMIN_URL); ?>Article/insert" role="form" method="POST">
         <div class="form-group">
             <label for="院系" class="control-label">类别</label>
         <select class="form-control" id="类别" name="academy">
            <option value='信息工程学院' id='信息工程学院'>信息工程学院</option>
            <option value='商学院' id='商学院'>商学院</option>
            <option value='建筑工程学院' id='建筑工程学院'>建筑工程学院</option>
          </select>
            
        </div> 
        <div class="form-group">
             <label for="内容" class="control-label" required>内容</label>
                <textarea name="content" id="内容" class="form-control"  style="height: 400px;width: 100%"></textarea>
        </div>
            <input class="form-control"  type="submit" value="提交">
       </form>
        </div>
               
    </div>
    </body>
</html>